import { Router, Route } from '@solidjs/router';
import IndexPage from './pages/index/index.jsx';
import BookPage from './pages/book/book.jsx';

function App() {
  return (
    <Router>
        <Route path="/" component={IndexPage} element={<IndexPage/>} /> {/* 使用 element 而不是 component */}
        <Route path="/book" component={BookPage} element={<BookPage/>} /> {/* 使用 element 而不是 component */}
    </Router>
  );
}

export default App;